<template>
  <div class="footer">
    <h1>我是footer</h1>
    <p>count为{{ count }}</p>
    <button @click="decrement">累减</button>
    <button @click="getMovieList">点击获取电影</button>
    <ul>
      <li v-for="movie in movieList" :key="movie.tvId">
        {{ movie.albumName }}
      </li>
    </ul>
  </div>
</template>

<script>
import { mapActions, mapMutations, mapState } from "vuex";
export default {
  name: "Footer",
  computed: {
    ...mapState("count",["count","movieList"]),
  },
  methods: {
    ...mapMutations("count",["decrement"]),
    ...mapActions("count",["getMovieList"]),
  },
};
</script>

<style scoped>
.footer {
  background-color: yellowgreen;
}
</style>